package com.itheima.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.reggie.entity.Analyse;
import com.itheima.reggie.entity.OrderDetail;
import com.itheima.reggie.mapper.OrderDetailDao;
import com.itheima.reggie.mapper.OrderDetailMapper;
import com.itheima.reggie.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailServiceImpl extends ServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {
@Autowired
private OrderDetailDao orderDetailDao;

    @Override
    public List<Analyse> dishCount() {
        List<Analyse> analyseList = orderDetailDao.dishCount();
        return analyseList;
    }

    @Override
    public List<Analyse> setmealCount() {
        List<Analyse> analyseList = orderDetailDao.setmealCount();
        return analyseList;
    }

    @Override
    public List<Analyse> dishNum() {
        List<Analyse> analyseList=  orderDetailDao.dishNum();
        return analyseList;
    }

    @Override
    public List<Analyse> setmealNum() {
        List<Analyse> analyseList  = orderDetailDao.setmealNum();
        return analyseList;
    }
}
